package com.only4play.practice.ordercommon.pay;

import java.math.BigDecimal;

/**
 * @author mengdy
 */
public abstract class AbstractPayItem implements PayItem{

  private BigDecimal money;

  private PayChannelType payChannelType;

  private PayGroup payGroup;

  public AbstractPayItem(BigDecimal money, PayChannelType payChannelType, PayGroup payGroup){
    this.money = money;
    this.payChannelType = payChannelType;
    this.payGroup = payGroup;
  }

  @Override
  public BigDecimal getMoney() {
    return this.money;
  }

  @Override
  public PayGroup getPayGroup() {
    return this.payGroup;
  }

  @Override
  public PayChannelType getPayType() {
    return this.payChannelType;
  }
}
